package org.example.servlet;

import org.example.http.BRequest;
import org.example.http.BResponse;
import org.example.http.BServlet;

import java.io.IOException;

/**
 * @author lilei
 * @date 2020-04-06
 */
public class SecondServlet extends BServlet {
    @Override
    public void doGet(BRequest request, BResponse response) throws IOException {
        this.doPost(request, response);
    }

    @Override
    public void doPost(BRequest request, BResponse response) throws IOException {
        response.write("This is Second Servlet");
    }
}
